package com.djhu.datax.plugin.writer.velocitywriter;

import com.alibaba.datax.common.spi.ErrorCode;

public enum VelocityWriterErrorCode implements ErrorCode {
    VELOCITY_WRITER_ERROR_CODE("VelocityWriterErrorCode_001","模板不存在"),
    VELOCITY_DIR_ERROR_CODE("VelocityWriterErrorCode_002","目录存在并且为文件")
    ;

    private String code;
    private String description;

    VelocityWriterErrorCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
